package com.lrkj.waitress.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 地点管理对象 tb_place
 *
 * @author yajun_ren
 * @date 2022-03-22
 */
@Data
public class Place extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 小区ID */
    @Excel(name = "小区ID")
    private String communityId;

    /** 地点名称 */
    @Excel(name = "地点名称")
    private String placeName;

    /** 地点编号 */
    @Excel(name = "地点编号")
    private String placeOdd;

    /** 巡逻要求 */
    @Excel(name = "巡逻要求")
    private String cruiserAsk;

    /** 祖父ID */
    @Excel(name = "祖父ID")
    private String ancestors;

    /** 部门ID */
    @Excel(name = "部门ID")
    private String deptId;

    /** 状态 */
    @Excel(name = "状态")
    private String placeState;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("communityId", getCommunityId())
                .append("placeName", getPlaceName())
                .append("placeOdd", getPlaceOdd())
                .append("cruiserAsk", getCruiserAsk())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("ancestors", getAncestors())
                .append("deptId", getDeptId())
                .append("placeState", getPlaceState())
                .toString();
    }
}